7. rising and falling edge & set and reset usage

你好。
Hello.

在本教程中,我们将学习如何使用上下接触管指令,以及如何在开发人员中使用、设置和重置指令?
In this tutorial, we will learn how can we use up and down contact pipes instructions and also how can we use, set and reset instructions into developer?

因为我们所做的,我们确实结束了出租电路。
Because what we did, we did end letting circuit.

但我们可以用另一种方法或另一种解决方案来做到这一点吗?
But can we do this with another method or another solution?

绝对没错。
Absolutely, yes.

我将指导这个完整的编程线。
I will direct this complete programming line.

好的。
OK.

我将从自民党 M10 开始。
And I will start with the LDP M10.

因此,您将在联系人中看到向上箭头,现在我们可以选择为什么这只是一个低值,可以将强大的功能粘贴到右侧。
So you will see in the contact the up arrow is now we have the option of why this is just a low to paste powerful off to the right side.

只有一个脉冲。
Just one pulse.

好的。
OK.

例如,当 M10 处于活动状态时,它也可以依次处于活动状态,并且始终无关紧要。
And when the M10 is active, then it can in turn can be active, for example, and always doesn't matter.

只有一个脉冲。
Just one pulse.

这将向右侧、向强大的、向从左侧到右侧的脉动。
This will give and pulse to the right side, to the powerful, to the from the left side to the right side.

那么会发生什么呢?
So what will happen?

M10 将被激活,这是您的开始按钮,只需按一次或有人可以一直按。
M10 just will be active and this is your start button, just one press time or somebody can press always.

没关系。
It doesn't matter.

会发生什么?
And what will happen?

我们将确定原因。
We will set why.

零输出,OK,有人按下停止按钮。
Zero output, OK, and somebody is pressed to stop button.

会发生什么?
What will happen?

我们将重置。
We will reset.

为什么?
Why?

零。
Zero.

那么我们来转换一下。
So let's convert.

这个项目,OK,然后他们将其发送到 DLC,让我们让它 main OK 并执行。
This project, OK, then they send it to the DLC, and let's make it main OK and execute.

并说是,所以这是在策略程序中设置和重置指令的非常常见的用法。
And say yes, so this is and very common usage of the set and reset instruction into policy programs.

由于火灾,我们几乎或者我可以说所有人总是使用事件重置指令。
We almost or I can say all always using incident reset instructions because of fire.

我想了解或我想知道哪个输出被激活或哪个按钮受到赞扬,或者我想保持打开或关闭输出或任何内部节拍或内部继电器(如 M 继电器进入策略)以及否则会发生什么。
I want to understand or I want to know which output is activated or which button is praised, or I want to keep on or off an output or any internal beat or internal relay like an M relays into policy and what happens otherwise.

它来了或者过去了。
And it came or one passed.

只是传感器检测到设备或有人按下按钮。
Just the sensor detects a device or somebody press a button.

但如果没有上述指令,我无法始终保留它,例如,进入内存或设置确实很容易用来保持任何数据始终打开。
But I can't keep it always without said instruction, for example, into the memory or set is really easy to use to keep any data always on.

所以现在我们被评为正确的模式。
So now we are rated into the right mode.

让我们来看看。
Let's take a look.

一旦进入脉冲的监视阶段,它现在正在运行。
Once the monitor stage of the pulse, it is running now.

M10将被激活。
M10 is going to be active.

只要切换一下就OK了,就切换了。
Just toggle for OK, it is toggled.

那我就关闭这个了。
Then I will close this one.

你会看到没有。
You will see there is no.

您所在的区域是否如此,因此这不是活动的,因此我将再次尝试设备并切换力量。
Will your area so this is not an active, so I will go to device taste again and toggle force.

你会发现什么都没有改变,好吗?
You will see nothing is changing, OK?

M10的状况正在改变,但只是过去而已。
M10 the condition is changing, but just one past.

这是主动的并根据改变植入物的状况。
This is active and according to do changing the condition of the implant.

您将首先看到切换,然后再次更改,然后再次更改。
You will see toggle first and again changed and again changed.

但一零仍然有效。
But one zero is still active.

那么我们为什么将其设置为零,我们该如何理解呢?
So we set the why zero and how can we understand?

稍后我会展示给你。
I will show it to you later.

现在M11,让我们改变它们。
Now M11, let's change them.

11 条件。
11 condition.

这是切换错误。
It is toggle false.

然后您将看到为什么现在重置零并切换为 false。
Then you will see the why zero is reset up now and toggle false.

但它被重置了。
But it is reset.

然后又是10个条件,我们就改变它。
Then again and 10 condition, we will change it.

好的,那么为什么零会处于活动状态,然后切换为假,那么现在就打开了,我会说先切换,然后关闭。
OK, then why zero will be active, then toggle false, then this is now on and I will say toggle first and this is off.

但是,当 0 处于活动状态时,让我们将 em 11 设置为 on 并切换为 false。
But still, while zero is active, then let's make em 11 to on and toggle false.

而且艾米丽现在很活跃,那为什么要重置零呢?
And Emily is active now, so why zero is reset?

我们又该如何理解呢?
And how can we understand it?

我们还可以多做一件事。
We can do one more extra.

信息,我认为给定的信息有点像谎言,零比一。
Information, I think given information is sort of a lie l d y zero out y one.

好的。
OK.

并将其发送至。
And send it to the.

让你。
Keep you.

保证写作,我会说是的。
Secured to writing, and I will say yes.

我会说,是的,它现在正在写政策。
And I will say, yes, that it is writing to policy now.

我们需要再等一下。
We need to wait a little bit more.

好吧,我会说是的。
And OK, I will say yes.

它已经完成了。
And it's completed.

好的,我会关闭它。
OK, I will close it.

我们会怎样做?
What will we do?

我们只会看到监控模式和PLC的监控状态正在运行。
We will just see the monitor mode and the monitor status of the plc is now running.

好吧,这又是我的错误。
And OK, this is my mistake again.

抱歉,对此感到抱歉。
Sorry, sorry for this.

如果我忘记写了。
And if I forget to write.

和。
And.

天哪,这是。
Oh, my God, this is.

我们忘记转换项目,并且一直为零和输出,为什么不转换该项目,它不会将这些更改放入内存中,也不会发送到策略。
We forgot to convert the project and all the while zero and out, why one without to convert this project, it's not getting these changes into the memory and it's not sending to the policy.

所以我需要再发送一次。
So I need to send it again.

对此感到抱歉。
Sorry for that.

我们需要再等一下,我会说是的。
We need to wait a little bit more and I will say yes.

然后又开始写了。
Then it's writing again.

快完成了,我会说是的。
And almost finished, and I will say yes.

它完成了,我将关闭它,我们将再次进行监视,监视状态将为一。
And it's completed, and I will close this, and we will go to monitor again and monitor status will be one.

好吧,那就是理查德了,没有办法零接触。
OK, then it is Richard that there is no way zero contact.

该最终触点现在处于闭合或断开或零状态,然后是10。
This ultimate contact is now closed or off or zero condition and 10 then.

首先,我将使它完全错误。
Firstly, I will make it total false.

以及为什么零接触是活跃的以及为什么一接触是活跃的。
And why zero contact is active and why one is active.

如果有人被迫停止。
And if somebody is pressed to stop.

好的。
OK.

切换强制,然后这个激活的M10现在仍然可以激活,并且我可以看到它,因为上升沿条件,但不是它的方向不正常。
Toggle force, then this activated M10 can still now active, and I can see it because the rising edge condition, but not it is not heading OK.

如果我进行切换,您现在会看到它是 1 10 0。
If I make a toggle for, you will see now it was the one 10 zero.

当该触点运行时,如果该触点为 1,则该触点将断开至接通条件 0 至 1 条件。
And when this contact runs run, this contact goes off to on condition zero to one condition if it is one.

如果你把它从零变为一或将真变为假,它就不会发出脉冲,或者不允许强大的力量离开右侧。
And if it if you make it zero to one or change true to false, it is not giving a pulse or it is not allowing the powerful off to the right side.

但是,当该值为零时,如果将其设为 1,则它只允许一个周期时间并且现在处于活动状态。
But when this is zero, if you make it one that it is allowing just one cycle time and it's active now.

那么为什么零接触是活跃的,我们也对 Stop 或 M11 有展望,这是相同的。
So why zero contact is active and we have an outlook also for the Stop or M11, this is the same.

现在是这样。
So now it is.

它曾经是一个,但由于我们需要等待而没有重置。
It was one, but it is not reset because of why we need to wait.

这必须从零到一。
This must go from zero to one.

让我们将其设置为 false 并重置。
Let's make it toggle false and this reset.

而且,我们有一个上升沿,我们也有跟随它的上升沿。
And also, we have the this is the rising edge we also have following it.

好的。
OK.

我怎样才能做到这一点?
And how can I do this?

我该如何使用它?
How can I use it?

例如,LPF 如果可以的话,这里有两个,也许 Elda f am 12,那么你会看到这是并且正在下降。
Like, for example, LPF if OK, two here, maybe Elda f am 12, then you will see this is and falling it.

这意味着 M12 必须处于自动关闭状态或一比零状态,此时玩家通过此游戏或低速将强大的信号传递到右侧,并且如果您愿意,它正在重置。
That means M12 must be on an auto off condition or one to zero condition that time one pass this game or a low to pass powerful off to the right side and it is resetting if you want.

我们可以再次测试它以使其理解,然后我们就可以完成本教程。
We can test it once more to make it understand and we can finish this tutorial.

还让我们进行转换并再次将其发送到 LC,我需要编写主程序并执行。
Also lets convert and let's send it to the LC again, and I need to write the main program and execute.

我会说是的,现在正在发送。
And I will say yes now it is sending.

为什么这些教程花了我们很长时间,因为这些都是基础的,这些都是非常重要的,对吧?
Why are these tutorials are taking a long time from us because these are all basic, these are all really important before, right?

他们完成机器程序。
They complete the machine programs.

我们需要有效、完整地理解这些说明,好吗?
We need to understand these instructions effectively and completely, OK?

这很重要,必须完成。
This is important that is completed.

那我就说克劳斯。
Then I will say Klaus.

好的,棒极了。
OK, very good.

明天的监视器,将在 10 天内发生的事情将被激活。
And the monitor tomorrow, what will happen just in 10 will be active.

好的,这使它切换为假。
OK, this make it toggle false.

现在它已经建立并与 y0 零接触。
And now it is set up and the contact of the y0 zero.

然后我们得到 Y 的输出。
Then we have an output from the Y.

零零一。
Zero zero one.

另外,为什么零也处于活动状态,我现在将它们设为 12。
Also, why zero is also active and I will make them 12 now.

将其聚焦于零和现在的一个条件,但没有任何改变。
Focus it what it is zero and now one condition, but nothing is changed.

一一二零条件OK。
One one two zero condition OK.

只需一个脉冲即可重置。
It is reset with just one pulse.

它被激活,我们在零输出时重置它。
It's activated and we reset it while zero output.

好的,这对于本教程很重要。
OK, this is important for this tutorial.

我到这里就结束了。
I am finished here.

再见,你变成了额外的金牛座人。
See you into an extra Taureans.